package com.codefish.framework.spring.beans.factory.config;

import com.codefish.framework.spring.util.IStringValueResolver;

/**
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @version 1.0.0
 * @since 2022/11/07 下午 12:19
 */
public class EmbeddedValueResolver implements IStringValueResolver {

    IConfigurableBeanFactory beanFactory;

    public EmbeddedValueResolver(IConfigurableBeanFactory beanFactory) {
        this.beanFactory = beanFactory;
    }


    @Override
    public String resolveStringValue(String strVal) {
        return this.beanFactory.resolveEmbeddedValue(strVal);
    }
}
